import { createStore } from 'vuex'
import app from './modules/app'
import user from './modules/user'
import getters from './getter'

const store = createStore({
  modules: {
    app,
    user
  },
  getters
})

export const setStore = (app) => {
  app.use(store)
}

export default store
